/*
 * Premium login theme for cPanel (user), WHM (admin) and Webmail.
 *
 * Loaded by main.tmpl *instead of* style_v2_optimized.css when the login page
 * is rendered (body gets the "lx" class). Every rule is scoped to body.lx so
 * the error / reset-password pages keep using the stock stylesheet.
 *
 * Design rules
 *   - Flat, solid colours only. Depth and delight come from motion.
 *   - One accent (cPanel orange) used for focus, brand and interaction.
 *   - All motion respects prefers-reduced-motion.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

body.lx {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

    /* surfaces + text (light: cPanel / Webmail) */
    --bg: #f6f5f2;
    --surface: #ffffff;
    --field: #ffffff;
    --ink: #14161a;
    --ink-2: #4a4f57;
    --ink-3: #676d77;
    --line: #e6e3dd;
    --line-strong: #d3d0c9;
    --hover-wash: #f1efea;

    /* brand + interaction */
    --accent: #ff6c2c;
    --accent-soft: rgba(255, 108, 44, 0.18);
    --accent-ink: #14161a;          /* text on an accent fill */
    --link: #b93c0b;                /* accessible orange for text links on light */
    --btn-bg: #14161a;
    --btn-ink: #ffffff;

    /* brand panel (always dark) */
    --panel-bg: #101318;
    --panel-ink: #f2f3f5;
    --panel-ink-2: #9aa3af;
    --panel-line: rgba(255, 255, 255, 0.09);
    --panel-node: #2a3038;

    /* feedback */
    --danger: #c0271b;
    --error-bg: #fdf0ee;  --error-line: #f2cbc5;  --error-ink: #8e1f15;
    --ok-bg: #edf7f0;     --ok-line: #bfe3cb;     --ok-ink: #14532d;  --ok: #16a34a;
    --info-bg: #f1f4f9;   --info-line: #d5ddea;   --info-ink: #1e3a5f;
    --warn-bg: #fff7e6;   --warn-line: #f2d9a0;   --warn-ink: #7a4b00;

    /* shape + motion */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --d-fast: 140ms;
    --d-base: 240ms;
    --d-slow: 420ms;
    --d-enter: 700ms;
}

/* Webmail — same light canvas, blue signature */
body.lx.wm {
    --accent: #2f6fed;
    --accent-soft: rgba(47, 111, 237, 0.18);
    --accent-ink: #ffffff;
    --link: #2357c6;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

html { -webkit-text-size-adjust: 100%; }

body.lx {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.lx *,
body.lx *::before,
body.lx *::after { box-sizing: border-box; }

body.lx a { color: var(--link); text-decoration: none; }
body.lx a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.lx a:focus-visible,
body.lx button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

body.lx .clear { clear: both; }
body.lx #preload_images { display: none; }
body.lx svg { display: block; }

/* ------------------------------------------------------------------ */
/* Shell: brand panel + form column                                   */
/* ------------------------------------------------------------------ */

.lx #login-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    margin: 0;
}

.lx .lx-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 48px 20px 120px;
}

.lx .lx-stage {
    position: relative;
    width: 100%;
    max-width: 400px;
}


/* ------------------------------------------------------------------ */
/* Brand panel                                                         */
/* ------------------------------------------------------------------ */

.lx .lx-brand {
    display: none;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px 44px;
    background: var(--panel-bg);
    color: var(--panel-ink);
    isolation: isolate;
}

/* drifting dot grid — solid dots, moved with transform only */
.lx .lx-brand::before {
    content: "";
    position: absolute;
    inset: -48px;
    z-index: -1;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.09'/%3E%3C/svg%3E);
    background-size: 24px 24px;
    animation: lx-drift 18s linear infinite;
}

.lx .lx-brand__top,
.lx .lx-head__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx .lx-mark { display: block; flex: none; width: 44px; height: auto; }

.lx .lx-wordmark {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.lx .lx-brand .lx-wordmark { color: var(--panel-ink); }

.lx .lx-orbit {
    position: relative;
    width: min(100%, 460px);
    aspect-ratio: 1;
    margin: 0 auto;
    animation: lx-orbit-in 1.1s var(--ease-out) 0.15s both;
}

.lx .lx-orbit svg { width: 100%; height: 100%; overflow: visible; }

.lx .lx-orbit .ring {
    fill: none;
    stroke: var(--panel-line);
    stroke-width: 1;
}

.lx .lx-orbit .ring--dash {
    stroke-dasharray: 2 7;
    stroke: rgba(255, 255, 255, 0.16);
}

.lx .lx-orbit .spin {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: lx-spin var(--t, 40s) linear infinite;
}
.lx .lx-orbit .spin--rev { animation-direction: reverse; }

.lx .lx-orbit .node { fill: var(--panel-node); stroke: rgba(255, 255, 255, 0.14); }
.lx .lx-orbit .node--accent { fill: var(--accent); stroke: none; }
.lx .lx-orbit .node--ink { fill: var(--panel-ink); stroke: none; opacity: 0.85; }

.lx .lx-orbit .core { fill: #171b22; stroke: rgba(255, 255, 255, 0.12); }

.lx .lx-orbit .pulse {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: lx-pulse 3.2s var(--ease-out) infinite;
}
.lx .lx-orbit .pulse--late { animation-delay: 1.6s; }

.lx .lx-orbit .core-logo { animation: lx-pop 900ms var(--ease-spring) 300ms backwards; transform-box: fill-box; transform-origin: center; }

.lx .lx-brand__copy { max-width: 440px; }

.lx .lx-brand__title {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lx .lx-brand__text {
    margin: 0 0 28px;
    color: var(--panel-ink-2);
    font-size: 15px;
    line-height: 1.6;
}

.lx .lx-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx .lx-features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 10px;
    border: 1px solid var(--panel-line);
    border-radius: 999px;
    color: var(--panel-ink);
    font-size: 13px;
    font-weight: 500;
    animation: lx-rise var(--d-enter) var(--ease-out) backwards;
    animation-delay: calc(500ms + var(--i, 0) * 70ms);
}

.lx .lx-features svg { width: 16px; height: 16px; color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Form header                                                         */
/* ------------------------------------------------------------------ */

.lx #login-sub-header {
    margin: 0 0 28px;
    text-align: left;
}

.lx .lx-head__brand { margin-bottom: 36px; }
.lx .lx-head__brand .lx-mark { width: 38px; }
.lx .lx-head__brand .lx-wordmark { font-size: 20px; }

.lx .lx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 5px 11px 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lx .lx-eyebrow__dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.lx .lx-eyebrow__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: lx-ping 2.4s var(--ease-out) infinite;
}

.lx .lx-title {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.lx .lx-sub {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
}

/* staggered entrance */
.lx .lx-rise {
    /* "backwards" (not "both") so login.js's inline opacity fades still apply afterwards */
    animation: lx-rise var(--d-enter) var(--ease-out) backwards;
    animation-delay: calc(80ms + var(--i, 0) * 60ms);
}

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */

.lx #notify { position: relative; }

/* the status slot collapses when login.js hides the message */
.lx .lx-status-slot {
    display: grid;
    grid-template-rows: 0fr;
    margin-bottom: 0;
    transition: grid-template-rows var(--d-slow) var(--ease-out), margin var(--d-slow) var(--ease-out);
}
.lx .lx-status-slot.is-open { grid-template-rows: 1fr; margin-bottom: 20px; }
.lx .lx-status-slot > .lx-status-clip { min-height: 0; overflow: hidden; }
.lx .lx-status-slot.is-open #login-status { animation: lx-drop var(--d-slow) var(--ease-out) backwards; }

.lx #login-status,
.lx #IE-warning,
.lx #link-account,
.lx noscript .error-notice {
    display: block;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--info-line);
    border-radius: var(--radius);
    background: var(--info-bg);
    color: var(--info-ink);
    font-size: 14px;
    line-height: 1.45;
}

.lx #notify > #login-status,
.lx #link-account,
.lx #IE-warning:not(.IE-warning-hide) { margin-bottom: 20px; }

.lx .IE-warning-hide { display: none !important; }

.lx #login-detail,
.lx #IE-warning-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lx #login-status-message p { margin: 0 0 6px; }
.lx #login-status-message p:last-child { margin: 0; }
.lx #login-status a,
.lx #IE-warning a { color: inherit; text-decoration: underline; }

.lx .login-status-icon,
.lx .IE-warning-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E);
}

.lx #login-status.error-notice {
    border-color: var(--error-line);
    background: var(--error-bg);
    color: var(--error-ink);
}
.lx #login-status.error-notice .login-status-icon {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E);
}

.lx #login-status.success-notice {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok-ink);
}
.lx #login-status.success-notice .login-status-icon {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E);
}

.lx #login-status.warn-notice,
.lx #IE-warning {
    border-color: var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-ink);
}
.lx #login-status.warn-notice .login-status-icon,
.lx .IE-warning-icon {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E);
}

/* "Authenticating…" — the info icon breathes while the request runs */
body.lx.logging-in #login-status.info-notice .login-status-icon {
    animation: lx-breathe 1.2s ease-in-out infinite;
}

.lx noscript .error-notice img { display: none; }

.lx #link-account .content-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lx .link-account-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Form                                                                */
/* ------------------------------------------------------------------ */

/* The clickthrough form (post-login notices) and the login form share one
   cell so neither shifts layout when login.js cross-fades between them. */
.lx #login-sub:not([style*="none"]) { display: grid !important; }
.lx #login-sub > #clickthrough_form,
.lx #login-sub > #forms { grid-area: 1 / 1; min-width: 0; }

.lx #login_form { margin: 0; }

.lx .lx-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
}

.lx .lx-label-row label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.lx .input-req-login.login-password-field-label { margin-top: 20px; }

.lx .reset-pw a {
    position: relative;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
}
.lx .reset-pw a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--d-base) var(--ease-out);
}
.lx .reset-pw a:hover { color: var(--ink); text-decoration: none; }
.lx .reset-pw a:hover::after { transform: scaleX(1); transform-origin: left; }

.lx .lx-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--field);
    transition:
        border-color var(--d-base) var(--ease-out),
        box-shadow var(--d-base) var(--ease-out),
        background-color var(--d-base) var(--ease-out);
}

.lx .lx-field:hover { border-color: var(--ink-3); }

.lx .lx-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.lx .lx-field__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 12px 0 16px;
    color: var(--ink-3);
    transition: color var(--d-base) var(--ease-out), transform var(--d-slow) var(--ease-spring);
}

.lx .lx-field:focus-within .lx-field__icon {
    color: var(--accent);
    transform: scale(1.08);
}

.lx input.std_textbox {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 16px 0 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font: 16px/1.2 var(--font);   /* 16px stops iOS zooming on focus */
    -webkit-appearance: none;
    appearance: none;
}

.lx input.std_textbox::placeholder {
    color: var(--ink-3);
    opacity: 1;
    transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.lx input.std_textbox:focus::placeholder { opacity: 0.55; }

/* keep browser autofill on-palette */
.lx input.std_textbox:-webkit-autofill,
.lx input.std_textbox:-webkit-autofill:hover,
.lx input.std_textbox:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    -webkit-box-shadow: 0 0 0 100px var(--field) inset;
    transition: background-color 9999s;
}

.lx .password-container input.std_textbox { padding-right: 4px; }

.lx .lx-reveal {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.lx .lx-reveal:hover { color: var(--ink); background: var(--hover-wash); }
.lx .lx-reveal:focus-visible { outline-offset: -2px; }
.lx .lx-reveal svg { width: 20px; height: 20px; }
.lx .lx-reveal .eye-off { display: none; }
.lx .lx-reveal[aria-pressed="true"] .eye-on { display: none; }
.lx .lx-reveal[aria-pressed="true"] .eye-off { display: block; animation: lx-pop var(--d-base) var(--ease-spring); }
.lx .lx-reveal[aria-pressed="false"] .eye-on { animation: lx-pop var(--d-base) var(--ease-spring); }

.lx .lx-caps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--warn-ink);
    font-size: 13px;
    font-weight: 500;
    animation: lx-drop var(--d-base) var(--ease-out);
}
.lx .lx-caps[hidden] { display: none; }
.lx .lx-caps svg { width: 14px; height: 14px; }


/* error state after a rejected login */
.lx .lx-stage.is-error .lx-field {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(192, 39, 27, 0.12);
}
.lx .lx-stage.is-error .lx-field__icon { color: var(--danger); }

.lx .lx-stage.is-shake #login-sub-container { animation: lx-shake 460ms var(--ease-out); }

/* while authenticating, the fields settle back and lock */
body.lx.logging-in #login_form .lx-field {
    opacity: 0.6;
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.lx .controls { display: block; margin-top: 28px; }
.lx .login-btn { margin: 0; }

.lx .lx-btn,
.lx .external-auth-select {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    overflow: hidden;
    isolation: isolate;
    border: 0;
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-ink);
    font: 600 15px/1 var(--font);
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--d-fast) var(--ease-out),
        color var(--d-slow) var(--ease-out),
        box-shadow var(--d-slow) var(--ease-out);
}

/* accent fill that sweeps in from the leading edge */
.lx .lx-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--d-slow) var(--ease-out);
}
html[dir="rtl"] .lx .lx-btn::before { transform-origin: right center; }

/* indeterminate progress line while authenticating */
.lx .lx-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateX(-100%);
}

@media (hover: hover) {
    .lx .lx-btn:hover:not(:disabled) {
        color: var(--accent-ink);
        box-shadow: 0 10px 24px -12px var(--accent);
    }
    .lx .lx-btn:hover:not(:disabled)::before { transform: scaleX(1); }
    .lx .lx-btn:hover:not(:disabled) .lx-btn__arrow { transform: translateX(4px); }
}

.lx .lx-btn:active:not(:disabled) { transform: scale(0.98); transition-duration: 80ms; }

.lx .lx-btn:disabled { cursor: progress; }

.lx .lx-btn__content,
.lx .lx-btn__spinner { grid-area: 1 / 1; }

.lx .lx-btn__content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--d-base) var(--ease-out), opacity var(--d-base) var(--ease-out);
}

.lx .lx-btn__arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--d-slow) var(--ease-spring);
}
html[dir="rtl"] .lx .lx-btn__arrow { transform: scaleX(-1); }

.lx .lx-btn__spinner {
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: translateY(140%);
    transition: transform var(--d-slow) var(--ease-out), opacity var(--d-base) var(--ease-out);
}
.lx .lx-btn__spinner svg { width: 100%; height: 100%; animation: lx-spin 0.9s linear infinite; }
.lx .lx-btn__spinner circle { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.lx .lx-btn__spinner .track { opacity: 0.22; }
.lx .lx-btn__spinner .head { stroke-dasharray: 18 60; }

/* ripple, injected by JS at the pointer position */
.lx .lx-ripple {
    position: absolute;
    z-index: -1;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.28;
    pointer-events: none;
    animation: lx-ripple 650ms var(--ease-out) forwards;
}

/* Submitting: label lifts away, spinner rises in, progress line runs */
body.lx.logging-in .lx-btn .lx-btn__content {
    opacity: 0;
    transform: translateY(-140%);
    transition-timing-function: var(--ease-in);
    transition-duration: var(--d-fast);
}
body.lx.logging-in .lx-btn .lx-btn__spinner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 60ms;
}
body.lx.logging-in .lx-btn::after {
    opacity: 1;
    animation: lx-progress 1.15s var(--ease-out) infinite;
}

/* clickthrough continue button (shown after login when the server has notices) */
.lx #clickthrough_form { margin: 0; }
.lx #clickthrough_form .notices p {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 14px;
}
.lx #clickthrough_form .lx-btn { margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* External auth + linked accounts                                     */
/* ------------------------------------------------------------------ */

.lx #external-auth-container,
.lx #select_users_option_block { margin-top: 28px; padding: 0; }

.lx .or-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.lx .or-separator::before,
.lx .or-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.lx .or-separator-secondary-label { display: none; }

.lx .external-auth-items { display: grid; gap: 10px; }

.lx .external-auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.lx .external-auth-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.45);
}
.lx .external-auth-link:active { transform: scale(0.98); }

.lx .external-auth-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat;
}

.lx .external-auth-select { height: auto; min-height: 48px; padding: 12px 16px; line-height: 1.3; }

.lx #select_user_form {
    width: auto;
    margin: 28px 0 0;
}

.lx #select_user_form > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
}

.lx .button-wrapper button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 128px;
    padding: 16px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: 500 13px/1.3 var(--font);
    cursor: pointer;
    transition: transform var(--d-base) var(--ease-out), border-color var(--d-base), box-shadow var(--d-base);
}
.lx .button-wrapper button:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.lx .button-wrapper img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.lx .text-content,
.lx .link-extra-account { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ */
/* Locale picker + footer                                              */
/* ------------------------------------------------------------------ */

.lx #locale-footer { margin: 36px 0 0; }

.lx #locales_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx #locales_list a,
.lx #mobilelocalemenu a {
    display: inline-block;
    padding: 4px 0;
    color: var(--ink-3);
    font-size: 13px;
    transition: color var(--d-fast) var(--ease-out);
}
.lx #locales_list a:hover,
.lx #mobilelocalemenu a:hover { color: var(--ink); }

.lx #mobilelocalemenu {
    display: none;
    color: var(--ink-3);
    font-size: 13px;
    text-align: center;
}
.lx #mobilelocalemenu a { margin-left: 6px; color: var(--ink); font-weight: 600; }

.lx .locale-container { text-align: center; }
.lx .locale-container select,
.lx .locale-container noscript button {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--field);
    color: var(--ink);
    font: 14px var(--font);
}

.lx #locale-container { padding: 4px 0 0; } /* faded in by login.js */

.lx #locale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.lx .locale-head { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }

.lx #locale-header .close a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}
.lx #locale-header .close a:hover { color: var(--ink); background: var(--hover-wash); text-decoration: none; }

.lx #locale-map .scroller {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
    max-height: min(56vh, 460px);
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.lx #locale-map .scroller.clear { clear: none; }
.lx .locale-cell a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 14px;
}
.lx .locale-cell a:hover { background: var(--hover-wash); text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Footer bits                                                         */
/* ------------------------------------------------------------------ */

.lx .lx-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 0;
    color: var(--ink-3);
    font-size: 12px;
}
.lx .lx-secure svg { width: 13px; height: 13px; }

.lx .copyright {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    padding: 32px 16px 0;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    background: url(images/cwh-logo.png) no-repeat center top / auto 24px;
}
.lx .copyright a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.lx .copyright a:hover { color: var(--ink); }

/* hide links while a login is in flight (same as stock theme) */
body.lx.logging-in .reset-pw,
body.lx.logging-in #locale-footer,
body.lx.logging-in #external-auth-container { opacity: 0.4; pointer-events: none; transition: opacity var(--d-base); }

/* ------------------------------------------------------------------ */
/* Success hand-off                                                    */
/* ------------------------------------------------------------------ */

.lx .lx-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lx .lx-success svg { width: 76px; height: 76px; }
.lx .lx-success .ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.lx .lx-success .ring-draw,
.lx .lx-success .tick {
    fill: none;
    stroke: var(--ok);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.lx .lx-success .ring-draw { transform: rotate(-90deg); transform-origin: 50% 50%; }

.lx .lx-success__title { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.lx .lx-success__text { margin: 0; color: var(--ink-2); font-size: 14px; }

body.lx.lx-success-on #content-container {
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.98);
    transition: opacity var(--d-base) var(--ease-in), transform var(--d-base) var(--ease-in);
    pointer-events: none;
}
body.lx.lx-success-on .lx-success {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--d-slow) var(--ease-out) 120ms;
}
body.lx.lx-success-on .lx-success .ring-draw { animation: lx-draw 600ms var(--ease-out) 180ms forwards; }
body.lx.lx-success-on .lx-success .tick { animation: lx-draw 380ms var(--ease-out) 680ms forwards; }
body.lx.lx-success-on .lx-success svg { animation: lx-pop 500ms var(--ease-spring) 640ms; }
body.lx.lx-success-on .lx-success__title,
body.lx.lx-success-on .lx-success__text { animation: lx-rise var(--d-slow) var(--ease-out) 300ms both; }

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
    .lx .lx-main { align-items: flex-start; padding: 32px 16px 128px; }
    .lx .lx-head__brand { margin-bottom: 28px; }
    .lx .lx-title { font-size: 26px; }
    .lx #locales_list { display: none; }
    .lx #mobilelocalemenu { display: block; }
    .lx #locale-map .scroller { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Reset password + invitation pages (body.lx-reset)                  */
/* ------------------------------------------------------------------ */

.lx-reset #resetpass,
.lx-reset #reset-sub,
.lx-reset #reset_form,
.lx-reset #reset-forms,
.lx-reset #forms,
.lx-reset .form-container {
    position: static;
    width: auto;
    margin: 0;
    padding: 0;
}

.lx-reset #notify { margin-bottom: 20px; }
.lx-reset #notify #login-status { margin: 0; animation: lx-drop var(--d-slow) var(--ease-out) backwards; }

.lx .input-req-login { margin: 0 0 8px; }
.lx .input-req-login label { color: var(--ink); font-size: 14px; font-weight: 600; }
.lx-reset .reset-input-group + .reset-input-group { margin-top: 20px; }
.lx-reset .lx-field input.std_textbox { padding-left: 0; background-image: none; }

/* progress through the three reset steps */
.lx .lx-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.lx .lx-steps__bar {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}
.lx .lx-steps__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}
html[dir="rtl"] .lx .lx-steps__bar > span { transform-origin: right center; }
.lx .lx-steps__item.is-done .lx-steps__bar > span { transform: none; }
.lx .lx-steps__item.is-active .lx-steps__bar > span { animation: lx-fill 900ms var(--ease-out) 350ms forwards; }
.lx .lx-steps__label {
    display: block;
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.lx .lx-steps__item.is-done .lx-steps__label { color: var(--ink-2); }
.lx .lx-steps__item.is-active .lx-steps__label { color: var(--ink); }

/* drawn result icon (success / error / info) */
.lx .lx-result { width: 64px; height: 64px; margin: 0 0 20px; }
.lx .lx-result svg { width: 100%; height: 100%; animation: lx-pop 520ms var(--ease-spring) 800ms backwards; }
.lx .lx-result .ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.lx .lx-result .ring-draw,
.lx .lx-result .glyph {
    fill: none;
    stroke: var(--ok);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.lx .lx-result--error .ring-draw,
.lx .lx-result--error .glyph { stroke: var(--danger); }
.lx .lx-result--info .ring-draw,
.lx .lx-result--info .glyph { stroke: var(--info-ink); }
.lx .lx-result .ring-draw {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: lx-draw 650ms var(--ease-out) 300ms forwards;
}
.lx .lx-result .glyph { animation: lx-draw 420ms var(--ease-out) 850ms forwards; }

/* text content on result pages */
.lx-reset #reset-sub p {
    margin: 0 0 12px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.6;
}
.lx-reset #reset-sub > div > p:only-of-type {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

/* buttons: inputs and links get the same look as the login button,
   with the accent fill sweeping in via an inset shadow */
.lx-reset .controls { margin-top: 24px; }
.lx-reset .controls + .controls { margin-top: 12px; }
.lx-reset .login-btn { position: relative; border-radius: var(--radius); }

.lx-reset .login-btn input[type="submit"], .lx-reset .login-btn button[type="submit"],
.lx-reset .login-btn .loginbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--btn-bg);
    box-shadow: inset 0 0 0 0 var(--accent), 0 0 0 0 transparent;
    color: var(--btn-ink);
    font: 600 15px/1 var(--font);
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        box-shadow var(--d-slow) var(--ease-out),
        color var(--d-slow) var(--ease-out),
        transform var(--d-fast) var(--ease-out),
        opacity var(--d-base);
}
@media (hover: hover) {
    .lx-reset .login-btn input[type="submit"]:hover:not(:disabled), .lx-reset .login-btn button[type="submit"]:hover:not(:disabled),
    .lx-reset .login-btn .loginbtn:hover {
        box-shadow: inset 480px 0 0 0 var(--accent), 0 10px 24px -12px var(--accent);
        color: var(--accent-ink);
        text-decoration: none;
    }
    html[dir="rtl"] .lx-reset .login-btn input[type="submit"]:hover:not(:disabled), html[dir="rtl"] .lx-reset .login-btn button[type="submit"]:hover:not(:disabled),
    html[dir="rtl"] .lx-reset .login-btn .loginbtn:hover {
        box-shadow: inset -480px 0 0 0 var(--accent), 0 10px 24px -12px var(--accent);
    }
}
.lx-reset .login-btn input[type="submit"]:active:not(:disabled), .lx-reset .login-btn button[type="submit"]:active:not(:disabled),
.lx-reset .login-btn .loginbtn:active { transform: scale(0.98); transition-duration: 80ms; }
.lx-reset .login-btn input[type="submit"]:focus-visible, .lx-reset .login-btn button[type="submit"]:focus-visible,
.lx-reset .login-btn .loginbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lx-reset .login-btn input[type="submit"]:disabled, .lx-reset .login-btn button[type="submit"]:disabled { opacity: 0.45; cursor: not-allowed; }

/* additional login links on the success page are secondary */
.lx-reset .controls + .controls .login-btn .loginbtn {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    color: var(--ink);
}
@media (hover: hover) {
    .lx-reset .controls + .controls .login-btn .loginbtn:hover {
        box-shadow: inset 0 0 0 1px var(--ink), 0 8px 20px -14px rgba(0, 0, 0, 0.5);
        color: var(--ink);
    }
}

/* submitting: hide the label, spin, run the progress line */
.lx-reset .login-btn.is-submitting { overflow: hidden; }
.lx-reset .login-btn.is-submitting input[type="submit"], .lx-reset .login-btn.is-submitting button[type="submit"] { color: transparent !important; cursor: progress; }
.lx-reset .login-btn.is-submitting::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid var(--btn-ink);
    border-right-color: transparent;
    border-radius: 50%;
    pointer-events: none;
    animation: lx-spin 0.8s linear infinite;
}
.lx-reset .login-btn.is-submitting::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 40%;
    height: 2px;
    background: var(--accent);
    animation: lx-progress 1.15s var(--ease-out) infinite;
}

/* Cancel */
.lx-reset .reset-pw { margin: 0; text-align: center; }
.lx-reset .reset-pw a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}
.lx-reset .reset-pw a:hover { color: var(--ink); }

.lx .lx-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 16px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}
.lx .lx-back svg { width: 16px; height: 16px; transition: transform var(--d-slow) var(--ease-spring); }
.lx .lx-back:hover { color: var(--ink); text-decoration: none; }
.lx .lx-back:hover svg { transform: translateX(-4px); }
html[dir="rtl"] .lx .lx-back svg { transform: scaleX(-1); }

/* puzzle: hint floats above the field once it is in use */
.lx-reset .placeholder-container { margin-top: 0; transition: margin var(--d-base) var(--ease-out), border-color var(--d-base), box-shadow var(--d-base); }
.lx-reset .placeholder-container.placeholder-active { margin-top: 22px; }
.lx-reset .placeholder-help-block {
    position: absolute;
    top: 50%;
    left: 46px;
    right: 16px;
    overflow: hidden;
    color: var(--ink-3);
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top var(--d-base) var(--ease-out), left var(--d-base) var(--ease-out), font-size var(--d-base) var(--ease-out), color var(--d-base);
}
html[dir="rtl"] .lx-reset .placeholder-help-block { left: 16px; right: 46px; }
.lx-reset .placeholder-container.placeholder-active .placeholder-help-block {
    top: -14px;
    left: 2px;
    color: var(--ink-2);
    font-size: 12px;
}
html[dir="rtl"] .lx-reset .placeholder-container.placeholder-active .placeholder-help-block { left: auto; right: 2px; }

/* security code */
.lx-reset #confirmation { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.18em; }
.lx-reset #confirmation::placeholder { font-weight: 400; letter-spacing: normal; }

.lx-reset .pnlResend {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 10px 0 0;
}
.lx-reset a.lnkResend { color: var(--link); font-size: 13px; font-weight: 600; }
.lx-reset .pnlResend > .btnMore {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink-2);
    font-size: 0;
    text-decoration: none;
    cursor: pointer;
}
.lx-reset .pnlResend > .btnMore::before { content: "?"; font-size: 12px; font-weight: 700; }
.lx-reset .pnlResend > .btnMore:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.lx-reset #msgResendMore {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    width: min(320px, 100%);
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.55;
    text-align: start;
    animation: lx-drop var(--d-base) var(--ease-out);
}
html[dir="rtl"] .lx-reset #msgResendMore { right: auto; left: 0; }
.lx-reset #btnCloseMore { display: inline-block; margin-top: 8px; color: var(--link); font-weight: 600; cursor: pointer; float: none; }

.lx-reset .reset-input-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--info-line);
    border-radius: var(--radius);
    background: var(--info-bg);
    color: var(--info-ink);
}
.lx-reset #reset-sub .reset-input-note p { margin: 0; color: inherit; font-size: 13px; font-style: normal; line-height: 1.5; }
.lx-reset #reset-sub .reset-input-note p + p { margin-top: 4px; }

/* HTTPS-required warning */
.lx-reset .alert {
    display: flex;
    gap: 10px;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--warn-line);
    border-radius: var(--radius);
    background: var(--warn-bg);
    box-shadow: none;
    color: var(--warn-ink);
    font-size: 14px;
}
.lx-reset .alert .fas { display: none; }
.lx-reset .alert::before {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E) center / contain no-repeat;
    mask: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E) center / contain no-repeat;
}
.lx-reset .alert-message { display: block; color: inherit; }

/* inline validation (cjt2 validation-container) */
.lx ul.validation-container,
.lx ul[validation-container] {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    list-style: none;
}
.lx ul.validation-container li.validation-error,
.lx ul[validation-container] > li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    background: none;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    animation: lx-drop var(--d-base) var(--ease-out);
}
.lx ul.validation-container li.validation-error::before,
.lx ul[validation-container] > li::before {
    content: "";
    flex: 0 0 15px;
    height: 15px;
    margin-top: 1px;
    background-color: currentColor;
    -webkit-mask: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E) center / contain no-repeat;
    mask: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E) center / contain no-repeat;
}

/* cjt2 <password> widget: field + show / generate / options bar + meter */
.lx #reset_form .input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--field);
    transition: border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.lx #reset_form .input-group:hover { border-color: var(--ink-3); }
.lx #reset_form .input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lx #reset_form .input-group input.std_textbox,
.lx #reset_form .input-group input.form-control,
.lx #reset_form .input-group #password {
    flex: 1 1 100%;
    float: none;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px 0 46px;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676d77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E) 16px center / 18px no-repeat;
    color: var(--ink);
    font: 16px/1.2 var(--font);
}
html[dir="rtl"] .lx #reset_form .input-group input.std_textbox,
html[dir="rtl"] .lx #reset_form .input-group #password { padding: 0 46px 0 16px; background-position: right 16px center; }
.lx #reset_form .input-group-btn {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--hover-wash);
    font-size: 0;
    white-space: normal;
}
.lx #reset_form .input-group-btn .btn {
    position: relative;
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    float: none;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
    font: 600 13px/1 var(--font);
    cursor: pointer;
    transition: background-color var(--d-fast), color var(--d-fast);
}
.lx #reset_form .input-group-btn .btn + .btn { border-left: 1px solid var(--line); }
html[dir="rtl"] .lx #reset_form .input-group-btn .btn + .btn { border-left: 0; border-right: 1px solid var(--line); }
.lx #reset_form .input-group-btn .btn:first-child,
.lx #reset_form .input-group-btn .btn:last-child { flex: 0 0 56px; width: 56px; border-right: 0; }
.lx #reset_form .input-group-btn .btn:only-child { flex: 1 1 auto; width: auto; }
.lx #reset_form .input-group-btn .btn:hover { background: var(--surface); color: var(--ink); }
.lx #reset_form .input-group-btn .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lx #reset_form .input-group-btn .btn:active { background: var(--line); }

/* our own icons for show / options, so they work with or without Font Awesome */
.lx #reset_form #password_btnShow .fas,
.lx #reset_form #password_btnShow .fa,
.lx #reset_form #password_btnSettings .fas,
.lx #reset_form #password_btnSettings .fa { display: none; }
.lx #reset_form #password_btnShow::before,
.lx #reset_form #password_btnSettings::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    transition: transform var(--d-slow) var(--ease-spring);
}
.lx #reset_form #password_btnShow::before {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E);
}
.lx #reset_form #password_btnShow:has(.fa-eye-slash)::before {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24M10.73 5.08A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a13.2 13.2 0 0 1-1.67 2.68M6.61 6.61A13.5 13.5 0 0 0 2 12s3.5 7 10 7a9.7 9.7 0 0 0 5.39-1.61M2 2l20 20'/%3E%3C/svg%3E);
}
.lx #reset_form #password_btnSettings::before {
    --icon: url(data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E);
}
.lx #reset_form .input-group.settings-panel-visible #password_btnSettings::before { transform: rotate(180deg); }
.lx #reset_form #password_btnGenerate .fa-key { display: none; }

.lx #reset_form .panel {
    margin: 8px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink-2);
    font-size: 13px;
    animation: lx-drop var(--d-base) var(--ease-out);
}
.lx #reset_form .panel h4 { margin: 12px 0 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.lx #reset_form .panel h4:first-child { margin-top: 0; }
.lx #reset_form .panel label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.lx #reset_form .panel .fa-times { top: 12px; right: 14px; width: auto; color: var(--ink-3); }
.lx #reset_form .panel #password_txtLength {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--field);
    color: var(--ink);
    font: 14px var(--font);
}

.lx #reset_form .progress {
    height: 6px;
    margin: 12px 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
    box-shadow: none;
}
.lx #reset_form .progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--ink-3);
    box-shadow: none;
    transition: width var(--d-slow) var(--ease-out), background-color var(--d-slow) var(--ease-out);
}
.lx #reset_form .progress-bar-danger { background: var(--danger); }
.lx #reset_form .progress-bar-warning { background: #e8930c; }
.lx #reset_form .progress-bar-info { background: #2f6fed; }
.lx #reset_form .progress-bar-success { background: var(--ok); }
.lx #reset_form .current-strength-text { padding: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.45; }

@keyframes lx-fill { to { transform: scaleX(1); } }

/* Desktop: brand panel + form column (kept after the base rules on purpose) */
@media (min-width: 1024px) {
    .lx #login-wrapper { grid-template-columns: 46% 1fr; }
    .lx .lx-brand { display: flex; }
    .lx .lx-main { padding: 64px 48px 120px; }
    .lx .lx-head__brand { display: none; }
    .lx .copyright { left: 46%; }
}

/* ------------------------------------------------------------------ */
/* Keyframes                                                           */
/* ------------------------------------------------------------------ */

@keyframes lx-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lx-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lx-orbit-in {
    from { opacity: 0; transform: scale(0.9) rotate(-8deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes lx-spin { to { transform: rotate(360deg); } }
@keyframes lx-drift { to { transform: translate(24px, 24px); } }
@keyframes lx-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.1); opacity: 0; }
}
@keyframes lx-ping {
    0%   { transform: scale(1); opacity: 0.6; }
    80%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes lx-breathe { 50% { opacity: 0.35; } }
@keyframes lx-pop {
    0%   { transform: scale(0.7); }
    100% { transform: scale(1); }
}
@keyframes lx-ripple {
    from { transform: scale(0); opacity: 0.32; }
    to   { transform: scale(48); opacity: 0; }
}
@keyframes lx-progress {
    from { transform: translateX(-100%); }
    to   { transform: translateX(260%); }
}
@keyframes lx-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-9px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}
@keyframes lx-draw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ */
/* Reduced motion: keep feedback, drop the choreography               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    body.lx *,
    body.lx *::before,
    body.lx *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }
    /* the loading spinner is essential feedback — keep it turning */
    body.lx .lx-btn__spinner svg {
        animation-duration: 1.4s !important;
        animation-iteration-count: infinite !important;
    }
    body.lx .lx-orbit .spin,
    body.lx .lx-orbit .pulse,
    body.lx .lx-brand::before,
    body.lx .lx-eyebrow__dot::after { animation: none !important; }
}
